# -*- coding: utf-8 -*-
from api import api, ERROR_COMMENT, GlobalError
from datetime import datetime
from flask import jsonify, request
from model.comment import Comment
from model.problem import Problem
from util.time_converter import datetime_to_timestamp
from werkzeug.exceptions import NotFound


class Error:
    INVALID_USER_NAME = {
        'err': ERROR_COMMENT + 1,
        'msg': 'Invalid User Name'
    }
